#ifndef Chart_KLineConfig_h
#define Chart_KLineConfig_h

#include "EnumDefinition.h"

#include <utility>
#include <vector>
#include <string>

namespace ytx
{
	class KLineConfig
	{
	public:
		const int portraitBaseDrawCount;
        const int landscapBaseDrawCount;
		const int addtionalK;
		const int getCount;
		const int min;
		const int max;
		const int step;
        const int dragBuffer;
        std::vector<std::pair<std::string, LineType::LineType> > tabList;
		KLineConfig(): portraitBaseDrawCount(66), landscapBaseDrawCount(100), addtionalK(60), getCount(240), min(20), max(160), step(5), dragBuffer(10)
        {
            tabList.push_back(std::pair<std::string, LineType::LineType>("分时", LineType::LAVG));
            tabList.push_back(std::pair<std::string, LineType::LineType>("日", LineType::L1d));
            tabList.push_back(std::pair<std::string, LineType::LineType>("5", LineType::L5m));
            tabList.push_back(std::pair<std::string, LineType::LineType>("15", LineType::L15m));
            tabList.push_back(std::pair<std::string, LineType::LineType>("30", LineType::L30m));
            tabList.push_back(std::pair<std::string, LineType::LineType>("60", LineType::L60m));
//            tabList.push_back(std::pair<std::string, LineType::LineType>("120", LineType::L120m));
//            tabList.push_back(std::pair<std::string, LineType::LineType>("180", LineType::L180m));
//            tabList.push_back(std::pair<std::string, LineType::LineType>("240", LineType::L240m));
//            tabList.push_back(std::pair<std::string, LineType::LineType>("两日", LineType::LAVG2));
            tabList.push_back(std::pair<std::string, LineType::LineType>("周", LineType::L1w));
//            tabList.push_back(std::pair<std::string, LineType::LineType>("月", LineType::L1M));
        };
	};
}
#endif
